﻿
@{
    ViewBag.Title = "荣誉管理";
}
<div style="margin: 0px;padding: 5px;">

    <fieldset class="layui-elem-field">
        <legend>查询条件</legend>
        <div class="layui-field-box">
            <div class="layui-form" id="formSearch">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        @*<label class="layui-form-label">关键字</label>*@
                        <div class="layui-input-inline" style="width: 200px;">
                            <input type="text" id="txt_search" autocomplete="off" placeholder="支持 荣誉标题 查询" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <select id="sel_ht_type" lay-filter="sel_ht_type" title="荣誉类别" class="layui-select" lay-search="">
                                <option value="">荣誉类别</option>
                                <option value="1">附件类型</option>
                                <option value="2">文字类型</option>
                                <option value="3">数字类型</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <button data-type="reload" class="layui-btn">搜索</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
</div>

<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button type="button" lay-event="batchDel" class="layui-btn layui-btn-sm layui-btn-danger"><i class="layui-icon layui-icon-delete"></i>批量删除</button>
        <button type="button" lay-event="add" class="layui-btn layui-btn-sm layui-btn-normal"><i class="layui-icon layui-icon-addition"></i>新增</button>
        @*<button id="btnEdit" type="button" class="layui-btn layui-btn-sm layui-btn-normal"><i class="layui-icon layui-icon-edit"></i>编辑</button>*@
    </div>
</script>
<table class="layui-hide" id="tb_list" lay-filter="list"></table>
<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{#  if(d.ht_type == 1){ }}
    <a class="layui-btn layui-btn-xs" lay-event="upload">新增上传项</a>
    {{#  } }}
</script>

<div>
    <!--弹出框 新增/修改 -->
    <form id="operateForm" class="layui-form" action="" lay-filter="operate" style="padding-top:20px;padding-right:20px;display:none;">
        <input type="hidden" name="ht_id" value="0" />
        <div class="layui-form-item">
            <label class="layui-form-label">荣誉标题</label>
            <div class="layui-input-block">
                <input type="text" name="ht_title" lay-verify="required" lay-reqtext="荣誉标题是必填项，岂能为空？" autocomplete="off" placeholder="荣誉标题" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">荣誉类别</label>
            <div class="layui-input-block">
                <select id="selHt_type" lay-filter="selHt_type" name="ht_type" title="请选择荣誉类别" class="layui-select" lay-verify="required" lay-search="">
                    <option value="1">附件类型</option>
                    <option value="2">文字类型</option>
                    <option value="3">数字类型</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item" id="type2_div" style="display:none;">
            <label class="layui-form-label">所属标题</label>
            <div class="layui-input-block">
                <select id="selHt_pid" lay-filter="selHt_pid" name="ht_pid" title="请选择所属标题" class="layui-select" lay-search=""></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input id="txtHt_sort" name="ht_sort" type="number" class="layui-input" lay-verify="required" value="99" min="0" />
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="save">保存</button>
            </div>
        </div>
    </form>

</div>
<script src="~/Content/zp/js/zpjs.js?v=@( ZP.Common.ZPCommon.ZP_Version )"></script>
<script src="~/Content/zp/js/EPHonor/index.js?v=@( ZP.Common.ZPCommon.ZP_Version )"></script>